package com.lhd.qd.module.system.dict.model.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@ApiModel(value = "字典新增参数")
@Data
public class DictSaveDTO {

    @NotNull(message = "编码不能为空")
    @ApiModelProperty(value = "编码")
    private Integer code;

    @NotBlank(message = "值不能为空")
    @ApiModelProperty(value = "值")
    private String value;

    @ApiModelProperty(value = "顺序")
    private Integer orderNo;

}
